package org.example.ReflectDemo.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;

@Slf4j
@Aspect
//@Component
@Order(2)
public class AspectDemo4 {
    @Before("execution(* org.example.ReflectDemo.controller.*.*(..)))")
    public void doBefore() {
        log.info("AspectDemo4 doBefore ...");
    }
    @After("execution(* org.example.ReflectDemo.controller.*.*(..)))")
    public void doAfter() {
        log.info("AspectDemo4 doAfter ...");
    }

}